package com.saver.modules.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * 相关文件下载表
 *
 * @author yuxiaolong
 * @email 1005471232@qq.com
 * @date 2018年08月30日 下午10:38
 */
@Entity
@Table(name = "sys_download")
public class SysDownloadEntity {

    @Transient
    private Integer id;

    /**
     * id
     */
    @Id
    private String uuid;

    /**
     * 标题
     */
    private String title;

    /**
     * 文件说明
     */
    private String mark;

    /**
     * 创建日期
     */
    private Date createDate;

    /**
     * 创建人
     */
    private Long userId;

    /**
     * 创建人姓名
     */
    @Transient
    private String username;

    /**
     * 附件列表
     */
    @Transient
    private List<SysAppendixEntity> appendixs;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<SysAppendixEntity> getAppendixs() {
        return appendixs;
    }

    public void setAppendixs(List<SysAppendixEntity> appendixs) {
        this.appendixs = appendixs;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
